package com.example.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.example.demo.domain.Article;

@Mapper
public interface ArticleMapper {
	/**
	 * 返回插入后的Aid
	 * @param article
	 * @return Aid
	 */
	Integer insertArticle(Article article);
	List<Article> selectArticlesByUid(Integer uid);
	List<Article> selectArticles();
	Article selectArticleByAid(Long aid);
}
